import request from '@/utils/request'

// 查询排班批次列表
export function listscheduingBach(query) {
  return request({
    url: '/consult/scheduingBach/list',
    method: 'get',
    params: query
  })
}

// 查询排班批次详细
export function getscheduingBach(schedulingscheduingBachId) {
  return request({
    url: '/consult/scheduingBach/' + schedulingscheduingBachId,
    method: 'get'
  })
}

// 新增排班批次
export function addscheduingBach(data) {
  return request({
    url: '/consult/scheduingBach',
    method: 'post',
    data: data
  })
}

// 修改排班批次
export function updatescheduingBach(data) {
  return request({
    url: '/consult/scheduingBach',
    method: 'put',
    data: data
  })
}

// 删除排班批次
export function delscheduingBach(schedulingscheduingBachId) {
  return request({
    url: '/consult/scheduingBach/' + schedulingscheduingBachId,
    method: 'delete'
  })
}
